using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Box2D.XNA;
using Microsoft.Xna.Framework;

namespace WindowsPhoneGame1
{
    class GroundObject:PhysicObject
    {
        private World world;

        public GroundObject(World world):base(world)
        {
        }

        public override void CreatBody(World world)
        {
            this._world = world;
            BodyDef bodyDef = new BodyDef();
            //bodyDef.type = BodyType.Dynamic;
            bodyDef.position = new Vector2(0, 5);
            _body = world.CreateBody(bodyDef);
            _body._type = BodyType.Static;
            SetSize(new Vector2(20, 20));
            _texture = ResourceManager.LoadTexture("images/wall");
        }
    }
}
